package entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author oahner
 * @create 2022-04-14 10:57
 */
public class Storebill extends Common implements Serializable {
    private static final long serialVersionUID = -15123453175096824L;

    @TableId(type = IdType.ID_WORKER_STR)
    private String id;

    private String storeId;

    private String inId;

    private String outId;

    private Double money;

    private Integer status;

    private String description;

    /**
     * 支付宝交易号
     */
    private String tradeNo;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public String getInId() {
        return inId;
    }

    public void setInId(String inId) {
        this.inId = inId;
    }

    public String getOutId() {
        return outId;
    }

    public void setOutId(String outId) {
        this.outId = outId;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Storebill{" +
                "id='" + id + '\'' +
                ", storeId='" + storeId + '\'' +
                ", inId='" + inId + '\'' +
                ", outId='" + outId + '\'' +
                ", money=" + money +
                ", status=" + status +
                ", description='" + description + '\'' +
                ", tradeNo='" + tradeNo + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
